#ifndef TEXTLABEL_H
#define TEXTLABEL_H

#include "gcxavg.h"

class TextContext;

/****************************************************
  Text label. Holds the text itself.
 ****************************************************/
class TextLabel
{
public:
    TextLabel();
    virtual ~TextLabel();

    // Set the context
    void setContext(TextContext *);

    TextContext * getContext(){
        return _context;
    }

    // Set the text
    void setText(XCHAR * text){
        _text = text;
    }

    // Get the text
    XCHAR * getText(){
        return _text;
    }

    // Get the substring with given length
    XCHAR * getSubstring(int, int);

private:
    XCHAR * _text;
    TextContext * _context;
    XCHAR * _substring;
};

#endif // TEXTLABEL_H
